package basic;

public class ArrayDemo1 {
    public static void main(String[] args) {
//        int[] intArray;
//        intArray = new int[10];
//        System.out.println(intArray);
//        String[] stringArray = new String[5];
//        double[] floaltArray = new double[10];
//        char[] charArray = new char[10];
        int[] arr1 = {1,2,3,4,5};//静态初始化
        int[] arr = new int[3];
        arr[0] = 1;
        arr[1] = 2;
        arr[2] = 3;//动态初始化
        System.out.println(arr[0]);
    }
}
